import java.util.Scanner;

public class test1 {
    public static void main(String[] args) {
        System.out.println("请输入三角形的三边，颜色，和是否填充(boolean)");
        Scanner read = new Scanner(System.in);
        double r1,r2,r3;
        String color;
        boolean filied;
        r1 = read.nextDouble();
        r2 = read.nextDouble();
        r3 = read.nextDouble();
        color = read.next();
        filied = read.nextBoolean();
        Triangle triangle = new Triangle(r1,r2,r3,color,filied);
        System.out.println(triangle.toString());
        System.out.println("colot: " + triangle.getColor() + "填充情况：" + triangle.isFilied());
        System.out.println("面积" + triangle.getArea() + ' ' + "边长" + triangle.getPerimeter());
    }
}
